<template>
    <div>
        <el-form-item :prop="item.name || ''" :label="item.label" v-bind="item.formItemProps || {}" ref="el-form-item">
            <el-input v-model="mvalue" v-bind="opt"></el-input>
        </el-form-item>
    </div>
</template>

<script>
export default {
    name: "PopoBase",
    props: {
        value: String,
        item: {type: Object, default: () =>( {})},
    },
    data() {
        return {
            mvalue: this.value,
            opt: {},
        };
    },
    watch:{
        mvalue( val){
            this.$emit( "input", val);
        }
    },
    created(){
        var opt = objectAssign( {}, this.item.props);
        this.opt = opt;
    },
    methods: {
    }
};
</script>
